﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit="true" codefile="TopView.ascx.vb" Inherits="NVPortal.Modules.NVNews.TopView" %>
<style type="text/css">
.NVNewsLasted_table {padding: 10px 5px; border-bottom: dotted 1px #aaaaaa;}    
.NVNewsLasted_IMG {background: none repeat scroll 0 0 white;
    border: 0 none;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    padding: 0;
    width: 100px; }
.TopViewtitle {color: #C2C3C2;
    display: block;
    font-family: Times New Roman; font-size: 30px; padding-bottom: 10px;
    text-shadow: 1px 1px 0 #434343;
    text-transform: uppercase;}    
.NVNewsLasted_Title, a.NVNewsLasted_Title:link {font-family: Arial; font-size: 12px; font-weight: bold; color: #252525; line-height: 110%;}    
a.NVNewsLasted_Title:visited {font-family: Arial; font-size: 12px; font-weight: bold; color: #000;}    
</style>
<span class="TopViewtitle">Bài đọc nhiều</span>
<asp:datagrid id="drgOtherNews" Width="100%" CellPadding="0" CellSpacing="0" runat="server" GridLines="None" ShowHeader="False" AutoGenerateColumns="False"
	AllowPaging="False" PageSize="5">
	<Columns>
		<asp:TemplateColumn HeaderText="C&#225;c tin kh&#225;c">
			<ItemTemplate>
            
			    <table class="NVNewsLasted_table" cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
			        <td style="vertical-align: top; font-family: Tahoma; font-size: 11px;">
                        <asp:Image ID="imgNews" CssClass="NVNewsLasted_IMG" runat="server" ImageUrl ='<%# iif(DataBinder.Eval(Container, "DataItem.imagepath").tostring().Contains("http://"), DataBinder.Eval(Container, "DataItem.imagepath"), "/Portals/0/news/" & DataBinder.Eval(Container, "DataItem.imagepath")) %>' AlternateText="" />   
                        <br />Số lần xem: <asp:Label Font-Bold="false" runat="server" ID='docnhieu' Text='<%#Databinder.Eval(Container.DataItem, "solandoc") %>'></asp:Label>
                    </td>
                    <td style="vertical-align: top; padding: 0px 0 0 5px;">
                        <span style="background-color: #D40107;border-radius: 2px 2px 2px 2px;left: -3px;margin-right: 5px;padding: 1px 10px;"><asp:HyperLink id='Label2' Font-Bold="false" ForeColor="#ffffff" Font-Size="11px" Font-Names="Tahoma"  runat="server" text='<%# CatName(DataBinder.Eval(Container.DataItem,"categoryid")) %>' ToolTip='<%# CatName(DataBinder.Eval(Container.DataItem,"categoryid")) %>' NavigateUrl='<%# FormatURLCat("danhmuc",DataBinder.Eval(Container.DataItem,"categoryid"),CatName(DataBinder.Eval(Container.DataItem,"categoryid"))) %>' /></span>
                        <asp:HyperLink id='HyperLink1' CssClass="NVNewsLasted_Title" runat="server" ToolTip='<%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"summary"))%>' NavigateUrl='<%# FormatURL("noidung",DataBinder.Eval(Container.DataItem,"newid"),DataBinder.Eval(Container.DataItem,"Title")) %>' text='<%# DataBinder.Eval(Container.DataItem,"title")%>'></asp:HyperLink>
                        <br />
                        <div id="container"><asp:HyperLink id='hplOtherNews' CssClass="tu_iframe_900x700" runat="server" NavigateUrl='<%# FormatURL("docnhanh/tin",DataBinder.Eval(Container.DataItem,"newid"),DataBinder.Eval(Container.DataItem,"Title")) %>' text='Đọc nhanh'></asp:HyperLink></div>
                    </td>				    
				    </tr></table>
                    
    </script>
			</ItemTemplate>
		</asp:TemplateColumn>
	</Columns>
	
</asp:datagrid>
